<!-- 发送设置 -->

<template>
  <div>
    <FormRadio label="发送类型" bind="questionnaireType" :dict="DICT.SEND_TYPE" isBtn auto disabled />

    <EasyRow v-if="one.questionnaireType === 2" col2>
      <ShowTime label="发送时间" bind="sendTime" />
    </EasyRow>

    <div v-if="one.questionnaireType === 3">
      <FormRadio label="循环周期" bind="repeatType" :dict="DICT.SEND_CYCLE" isBtn disabled />
      <FormCheckbox
        v-if="one.repeatType === 2"
        label="选择每周"
        bind="repeatConfig_week"
        :dict="DICT.SEND_WEEK"
        :hasAll="false"
        disabled
      />
      <FormCheckbox
        v-if="one.repeatType === 3"
        label="选择每月"
        bind="repeatConfig_month"
        :dict="DICT.SEND_MONTH"
        :hasAll="false"
        disabled
      />
      <EasyRow col2>
        <ShowDict label="选择时间" bind="repeatConfig_time" :dict="DICT.HOUR_MINUTE" />
      </EasyRow>
    </div>
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MySend',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb()],
}
</script>
